package com.google.gwt.livinglife.client.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


public class ResponseData extends BasicPostWithStatsData implements Serializable {
	private Long challenge;

	private List<CommentData> comments = new ArrayList<CommentData>();
	// num_comments is the actual number of comments on the server which may be different from comments.size()
	// (since we may only fetch a partial list).
	private int num_comments = 0;
	public ResponseData(String postText, Date creationDate, UserIdData author,
			String embededImage, int liked, int inspired, int numInapropriate, Long challenge, List<CommentData> comments) {
		super(postText, creationDate, author, embededImage, liked, inspired,
				numInapropriate);
		this.challenge = challenge;
		this.comments = comments;
	}

	public ResponseData() {
	}

	public Long getChallenge() {
		return challenge;
	}

	public void setChallenge(Long challenge) {
		this.challenge = challenge;
	}

	public List<CommentData> getComments() {
		return comments;
	}

	public void setComments(List<CommentData> comments) {
		this.comments = comments;
	}

	public int getNum_comments() {
		return num_comments;
	}

	public void setNum_comments(int numComments) {
		num_comments = numComments;
	}
}
